package com.zj.osm.view.account.login

import com.zj.osm.mvp.BasePresenter


/**
 * @project OsmDroid
 * @author jiang zhu
 * @data 2019/12/6
 */
class LoginActivityPresenter:BasePresenter<LoginActivityView>() {

    private var mapModel: LoginActivityModel = LoginActivityModel()

    /**
     * 登录
     * @param account 账号
     * @param password 密码
     */
    fun toLogin(account: String, password: String) {

        val result = mapModel.toLogin(account,password)
        if (view != null) {
            view.onLoginResult(result)
        }
    }

}